//商品详情页相关api
import axios from '../untils/request'
// 获取商品列表
export const getGoodList = (params) => {
    return axios({
        url: '/api/getgoods',
        params
    })
}

// 获取商品参数区和价格，标题等数据
export const getGoodParameters = (id) => {
    return axios({
        url: `/api/goods/getinfo/${id}`,
    
    })
}

// 商品图文介绍
export const getdesc = (id) => {
    return axios({
        url: `/api/goods/getdesc/${id}`,
    
    })
}

// 获取购物车页面数据
export const getCartList = (params) => {
    return axios({
        url: `/api/goods/getshopcarlist/${params.ids}`,
    
    })
}